<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/23
 * Time: 14:56
 */

class Pco_site_model extends CI_Model
{
    public function site_opint()
    {
        $query = $this->db->get('pco_site');

        $site = array();
        foreach ($query->result_array() as $row) {
            $site[$row['site_id']] = $row['site_name'];
        }

        return $site;
    }
}